<br /><br />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />    <title>Agregar nuevo Expediente</title>    
</head>
<body>
<?php
include "layout-header.phtml";
?>
	<div id="content">
	  <form class="pure-form pure-form-aligned" enctype="application/x-www-form-urlencoded" action="<?php echo $this->url(array('controller'=>'Record',
            'action'=>'add'));?>" method="post" id = 'form'>
 			
 			<fieldset>
 	           	<legend>Agregar nuevo Expediente</legend>
    			<div class="pure-g-r">
               		<div class="pure-u-1-2">  
                  		<div class="pure-control-group">
        					<label for="placa" class="required">Placa </label>    
							<input type="text" name="placa" value="" id="placa" placeholder="Placa" />
						</div>	
					</div>
					<div class="pure-u-1-2">  
						<div class="pure-control-group">
		        			<label for="observacion" class="required">Observacion</label>    
							<input type="text" name="observacion" value="" id="observacion" placeholder="Observacion" />
						</div>
					</div>
				</div>		
				
				<div class="pure-control-group">
					<label ></label>
					<input class="pure-button pure-button-primary" type="submit" name="submit" id="submitbutton" value="Agregar"/>
				</div>
			</fieldset>
			<fieldset>
 	           	<legend>Lista Repuestos</legend>
    			<div class="pure-g-r">
               		<div class="pure-u-1-4">  
                  		<div class="pure-control-group">
        					<label for="cantidad" class="required"></label>    
							<input type="text" name="cantidad" value="" id="cantidad" placeholder="Cantidad" />
						</div>	
					</div>
					<div class="pure-u-1-4">  
						<div class="pure-control-group">
		        			<label for="descripcion" class="required"></label>    
							<input type="text" name="descripcion" value="" id="descripcion" placeholder="Descripcion" />
						</div>
					</div>
					<div class="pure-u-1-4">  
						<div class="pure-control-group">
		        			<label for="precio" class="required"></label>    
							<input type="text" name="precio" value="" id="precio" placeholder="Precio" />
						</div>
					</div>
					<div class="pure-u-1-4"> 
						<div class="pure-control-group">
							<label ></label>
							<input class="pure-button pure-button-primary" type="button" name="button" id="button" value="Agregar" onclick="addPiece()" />
						</div>
					</div>
				</div>	
				<table class="pure-table pure-table-bordered" id="piecelist">
            <thead>
                <tr>
                    <th>Cantidad</th>
                    <th>Descripcion</th>
                    <th>Precio</th>

                    
                    <th style="width: 50px;">&nbsp;</th>
                </tr>
            </thead>
            	</table>							
			</fieldset>
			<fieldset>
 	           	<legend>Servicios</legend>
    			<div class="pure-g-r">
					<div class="pure-u-1-3">  
						<div class="pure-control-group">
		        			<label for="descripcionService" class="required"></label>    
							<input type="text" name="descripcionService" value="" id="descripcionService" placeholder="Descripcion" />
						</div>
					</div>
					<div class="pure-u-1-3">  
						<div class="pure-control-group">
		        			<label for="precioService" class="required"></label>    
							<input type="text" name="precioService" value="" id="precioService" placeholder="Precio" />
						</div>
					</div>
					<div class="pure-u-1-3"> 
						<div class="pure-control-group">
							<label ></label>
							<input class="pure-button pure-button-primary" type="button" name="button" id="button" value="Agregar" onclick="addService()" />
						</div>
					</div>
				</div>	
				<table class="pure-table pure-table-bordered" id="serviceList">
            <thead>
                <tr>
                    <th>Descripcion</th>
                    <th>Precio</th>

                    
                    <th style="width: 50px;">&nbsp;</th>
                </tr>
            </thead>
            	</table>
            	<input type="hidden" id="type" name="type">
            	
            	<div class="pure-g-r">
               		<div class="pure-u-1-2">  
                  		<div class="pure-control-group">

			            	<label ></label>
									  <input class="pure-button pure-button-primary" type="submit" name="button" id="proforma" value="Guardar Expediente" onclick="addrecord('P')" />
						</div>		
					</div>	
					<div class="pure-u-1-2">  
                  		<div class="pure-control-group">

			            	<label ></label>
										<input class="pure-button pure-button-primary" type="button" name="button" id="record" value="Guardar Expediente" onclick="addrecord()" />		
						</div>		
					</div>	
				
        </div>						
		</fieldset>
		</form>
	</div>
</body>
</html>